﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using DAL;
using System.Data.SqlClient;
using Model;

namespace BLL
{
    /// <summary>
    /// 项目基本信息表
    /// </summary>
    public class Basic_InfoBll
    {
        Basic_InfoDal dal = new Basic_InfoDal();

        /// <summary>
        /// 显示
        /// </summary>
        /// <returns>List集合</returns>
        public List<Model.EABasic_Info> Show(params SqlParameter[] paramters)
        {
            return dal.Show(paramters);
        }

          /// <summary>
       /// 登记列表
       /// </summary>
       /// <returns></returns>
        public List<Model.dengji> DList()
        {
            return dal.DList();
        }

        /// <summary>
        /// 修改  为勘察结束
        /// </summary>
        /// <param name="t"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool UpdateString(Model.EABasic_Info b)
        {
            return dal.UpdateString(b);
        }
          /// <summary>
        /// 查看详情
        /// </summary>
        /// <returns></returns>
        public List<Model.dengji> BackDatas(string pnum)
        {
            return dal.BackDatas(pnum);
        }
        /// <summary>
        /// 登记添加
        /// </summary>
        /// <param name="b"></param>
        /// <returns></returns>
        public bool BasicAdd(EABasic_Info b)
        {
            return dal.BasicAdd(b);
        }


        /// <summary>
        /// 获取最新添加的项目编号
        /// </summary>
        /// <returns></returns>
        public string GetBasic()
        {
            return dal.GetBasic();
        }
        /// <summary>
        /// 评估显示
        /// </summary>
        /// <returns></returns>
        public List<PingGu> PList()
        {
            return dal.PList();
        }
        /// <summary>
        /// 修改项目状态
        /// </summary>
        /// <param name="num"></param>
        /// <param name="pro"></param>
        /// <returns></returns>
        public bool UpdateState(int num,string pro)
        {
            return dal.UpdateState(num,pro);
        }


        /// <summary>
        /// 修改评估
        /// </summary>
        /// <returns></returns>
        public bool updPinggu(EABasic_Info b)
        {
            return dal.updPinggu(b);
        }


          /// <summary>
        /// 导出反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List<Model.Extend.Derive> Back(string id)
        {
            return dal.Back(id);
        }

        /// <summary>
        /// 反填
        /// </summary>
        /// <returns></returns>
        public Model.EABasic_Info Edit(string projectNumber)
        {
            return dal.Edit(projectNumber);
        }
        /// <summary>
        /// 修改评估员
        /// </summary>
        /// <returns></returns>
        public bool UpdateEvaluation(string projectNumber, int ID)
        {
            return dal.UpdateEvaluation(projectNumber, ID);
        }
        /// <summary>
        /// 更改数据
        /// </summary>
        /// <param name="projectNumber">项目号</param>
        /// <param name="ID">评估员</param>
        /// <param name="Bumen">部门</param>
        /// <param name="Kancha">勘察员</param>
        /// <returns></returns>
        public bool UpdateEvaluation(string projectNumber, int ID,int Bumen,int Kancha)
        {
            return dal.UpdateEvaluation(projectNumber, ID,Bumen,Kancha);
        }
    }
}
